package com.design.adapter;

/**
 * @author cxx
 * @create 2020-04-21 10:56
 **/
public class Man implements Person{

    private String name;

    public Man(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void walk(){
        System.out.println (name +":walk...walk...");
    }

    @Override
    public void run() {
        walk ();
    }
}
